#ifndef UDP4_H
#define UDP4_H

#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#include <iostream>
#include <string.h>
#include <arpa/inet.h>
#include <string>
#include "socket.h"
#include <unistd.h>

class UDP4 : public Socket {

 public:
	
  UDP4();

  virtual void SetPeerAddress(char* address, int port);

  virtual int Receive(void* buffer, int length);
  
  virtual int Send(const void* buffer, int length);

 private:
 
  static const int BACK_LOG_NUM = 100;

};

#endif
